<template>
  <div class="daily-check">
    <div class="daily-check-header">
      <!-- 一切以真机为准，不要太过于相信浏览器的样式，浏览器只是看基本布局 -->
      <van-nav-bar title="标题" left-arrow>
        <template #left>
          <div>
            <van-icon class="font-1" name="arrow-left" color="#ffffff" />
          </div>
          <div class="cross_left">
            <van-icon class="font-1" name="cross" color="#ffffff"/>
          </div>
        </template>
      </van-nav-bar>
    </div>
    <!-- 立即签到以及展示数字 -->
    <div class="daily-check-content">
      <div class="content-header">
        <div class="content-font">280</div>
        <div>
          <div class="content-font-1">立刻签到</div>
        </div>
      </div>
      <!-- 步骤条 -->
    <div class="content-step">
      <div class="content-title font-2">
        已连续签到1天
      </div>
      <van-steps :active="active" active-icon="stop-circle-o">
        <van-step>12/11</van-step>
        <van-step>12/12</van-step>
        <van-step>12/13</van-step>
        <van-step>12/14</van-step>
      </van-steps>
    </div>
    </div>
      <!-- 日常赚积分 -->
    <div class="daliy-points">
      <div>
        <span class="line">|</span>
        <span class="daliy-points-title">日常赚积分</span>
      </div>
      <div class="daliy-points-content">
        <div class="points-color points-p">
          <div>
            <van-icon name="gold-coin" color="orange"></van-icon>
          </div>
          <div>
            <p class="font font-color">日常消费</p>
            <p class="font font-color">+10积分</p>
          </div>
        </div>
        <div class="points-color-1 points-p">
          <div>
            <van-icon name="gold-coin" color="orange"></van-icon>
          </div>
          <div>
            <p class="font font-color">购买VIP</p>
            <p class="font font-color">+30积分</p>
          </div>
        </div>
        <div class="points-color-2 points-p">
          <div>
            <van-icon name="gold-coin" color="orange"></van-icon>
          </div>
          <div>
            <p class="font font-color">幸运抽奖</p>
            <p class="font font-color">+100积分</p>
          </div>
        </div>
      </div>
    </div>
    <div class="daliy-shop">
      <div>
        <span class="line">|</span>
        <span class="daliy-points-title">积分商城</span>
        <span class="font-1 check-more">查看更多 ></span>
      </div>
      <div class="daliy-points-content">
        <div class="points-color points-p daliy-shop-list">
          <div>
            <van-icon name="gold-coin" color="orange"></van-icon>
          </div>
          <div>
            <p class="font font-color">日常消费</p>
            <p class="font font-color">+10积分</p>
          </div>
        </div>
        <div class="daliy-shop-list">
          <div class="points-color-1 points-p ">
          <div>
            <van-icon name="gold-coin" color="orange"></van-icon>
          </div>
          <div>
            <p class="font font-color">购买VIP</p>
            <p class="font font-color">+30积分</p>
          </div>
        </div>
        <div class="points-color-2 points-p">
          <div>
            <van-icon name="gold-coin" color="orange"></van-icon>
          </div>
          <div>
            <p class="font font-color">幸运抽奖</p>
            <p class="font font-color">+100积分</p>
          </div>
        </div>
        </div>
        
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 2
    }
  }
}
</script>
<style lang="scss" scoped>
.daily-check {
  width: 100%;
  height: 100vh;
  position: relative;
}

.daily-check-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}
.cross_left {
  margin-left: 20px;
}
.daily-check-content {
  margin-top: 44px;
  position: relative;
}
.content-header {
  padding-top: 30px;
  height: 280px;
  background: #dc1e1e;
  text-align: center;
  box-sizing: border-box;
}
.content-font {
  font-size: 50px;
  color: #ffffff;
}
.content-font-1 {
  font-size: 14px;
  background: #ffffff;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  color: #dc1e1e;
}
.content-step {
  width: 90%;
  box-sizing: border-box;
  margin: 0 5%;
  padding: 20px;
  border-radius: 10px;
  position: absolute;
  top: 190px;
  background: #ffffff;
  box-shadow: 0 5px 5px gray;
}
.content-title {
  color: orange;
  text-align:center;
}
.daliy-points {
  margin-top: 80px;
  background: #ffffff;
  padding: 10px;
}
.daliy-points-title {
  font-size: 20px;
  display: inline-block;
  margin-left: 10px;
}
.daliy-points-content {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.points-color {
  background: pink;
}
.points-color-1 {
  background: blue;
}
.points-color-2 {
  background: blueviolet;
}
.points-p {
  padding: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.font-color {
  color: #ffffff;
}
.line {
  font-weight: bold;
  color: orange;
  background: orange;
  font-size: 18px;
}
.daliy-shop {
  margin-top: 20px;
  background: #ffffff;
  padding: 10px;
}
.check-more {
  color: orange;
  float: right;
}
.daliy-shop-list {
  width: 45%;
}
</style>
<style scoped>
  /deep/ .van-nav-bar__content {
    background: #dc1e1e !important;
  }
  /deep/ .van-nav-bar__title {
    color: #ffffff;
  }
  /deep/ .van-hairline--bottom::after {
    border: none;
  }
  /deep/.van-step--finish .van-step__circle {
    background: orange;
  }
  /deep/ .van-step--finish .van-step__line {
    background: orange !important;
  }
  /deep/ .van-step__icon--active {
    color: orange !important;
  }
  /deep/ .van-step__title--active {
    color: orange !important;
  }
  /deep/ .van-step__title {
    transform: translateY(40px) translateX(-10px) !important;
  }
  /deep/ .van-steps__items {
    height: 40px;
  }
  /deep/ .van-step--horizontal:last-child .van-step__title {
    transform: translateY(40px) translateX(10px) !important;
  }
</style>